3.9.51 \(\int \sqrt {\cos (c+d x)} (b \cos (c+d x))^{3/2} (A+B \cos (c+d x)) \, dx\) [851]

Optimal. Leaf size=140 \[ \frac {A b x \sqrt {b \cos (c+d x)}}{2 \sqrt {\cos (c+d x)}}+\frac {b B \sqrt {b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {A b \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d}-\frac {b B \sqrt {b \cos (c+d x)} \sin ^3(c+d x)}{3 d \sqrt {\cos (c+d x)}} \]

[Out]

1/2*A*b*x*(b*cos(d*x+c))^(1/2)/cos(d*x+c)^(1/2)+b*B*sin(d*x+c)*(b*cos(d*x+c))^(1/2)/d/cos(d*x+c)^(1/2)-1/3*b*B
*sin(d*x+c)^3*(b*cos(d*x+c))^(1/2)/d/cos(d*x+c)^(1/2)+1/2*A*b*sin(d*x+c)*cos(d*x+c)^(1/2)*(b*cos(d*x+c))^(1/2)
/d

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 140, normalized size of antiderivative = 1.00, number of steps used = 6, number of rules used = 5, integrand size = 33, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.152, Rules used = {17, 2827, 2715, 8, 2713} \begin {gather*} \frac {A b x \sqrt {b \cos (c+d x)}}{2 \sqrt {\cos (c+d x)}}+\frac {A b \sin (c+d x) \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)}}{2 d}-\frac {b B \sin ^3(c+d x) \sqrt {b \cos (c+d x)}}{3 d \sqrt {\cos (c+d x)}}+\frac {b B \sin (c+d x) \sqrt {b \cos (c+d x)}}{d \sqrt {\cos (c+d x)}} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[Sqrt[Cos[c + d*x]]*(b*Cos[c + d*x])^(3/2)*(A + B*Cos[c + d*x]),x]

[Out]

(A*b*x*Sqrt[b*Cos[c + d*x]])/(2*Sqrt[Cos[c + d*x]]) + (b*B*Sqrt[b*Cos[c + d*x]]*Sin[c + d*x])/(d*Sqrt[Cos[c +
d*x]]) + (A*b*Sqrt[Cos[c + d*x]]*Sqrt[b*Cos[c + d*x]]*Sin[c + d*x])/(2*d) - (b*B*Sqrt[b*Cos[c + d*x]]*Sin[c +
d*x]^3)/(3*d*Sqrt[Cos[c + d*x]])

Rule 8

Int[a_, x_Symbol] :> Simp[a*x, x] /; FreeQ[a, x]

Rule 17

Int[(u_.)*((a_.)*(v_))^(m_)*((b_.)*(v_))^(n_), x_Symbol] :> Dist[a^(m + 1/2)*b^(n - 1/2)*(Sqrt[b*v]/Sqrt[a*v])
, Int[u*v^(m + n), x], x] /; FreeQ[{a, b, m}, x] &&  !IntegerQ[m] && IGtQ[n + 1/2, 0] && IntegerQ[m + n]

Rule 2713

Int[sin[(c_.) + (d_.)*(x_)]^(n_), x_Symbol] :> Dist[-d^(-1), Subst[Int[Expand[(1 - x^2)^((n - 1)/2), x], x], x
, Cos[c + d*x]], x] /; FreeQ[{c, d}, x] && IGtQ[(n - 1)/2, 0]

Rule 2715

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[(-b)*Cos[c + d*x]*((b*Sin[c + d*x])^(n - 1)/(d*n))
, x] + Dist[b^2*((n - 1)/n), Int[(b*Sin[c + d*x])^(n - 2), x], x] /; FreeQ[{b, c, d}, x] && GtQ[n, 1] && Integ
erQ[2*n]

Rule 2827

Int[((b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)]), x_Symbol] :> Dist[c, Int[(b*S
in[e + f*x])^m, x], x] + Dist[d/b, Int[(b*Sin[e + f*x])^(m + 1), x], x] /; FreeQ[{b, c, d, e, f, m}, x]

Rubi steps

\begin {align*} \int \sqrt {\cos (c+d x)} (b \cos (c+d x))^{3/2} (A+B \cos (c+d x)) \, dx &=\frac {\left (b \sqrt {b \cos (c+d x)}\right ) \int \cos ^2(c+d x) (A+B \cos (c+d x)) \, dx}{\sqrt {\cos (c+d x)}}\\ &=\frac {\left (A b \sqrt {b \cos (c+d x)}\right ) \int \cos ^2(c+d x) \, dx}{\sqrt {\cos (c+d x)}}+\frac {\left (b B \sqrt {b \cos (c+d x)}\right ) \int \cos ^3(c+d x) \, dx}{\sqrt {\cos (c+d x)}}\\ &=\frac {A b \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d}+\frac {\left (A b \sqrt {b \cos (c+d x)}\right ) \int 1 \, dx}{2 \sqrt {\cos (c+d x)}}-\frac {\left (b B \sqrt {b \cos (c+d x)}\right ) \text {Subst}\left (\int \left (1-x^2\right ) \, dx,x,-\sin (c+d x)\right )}{d \sqrt {\cos (c+d x)}}\\ &=\frac {A b x \sqrt {b \cos (c+d x)}}{2 \sqrt {\cos (c+d x)}}+\frac {b B \sqrt {b \cos (c+d x)} \sin (c+d x)}{d \sqrt {\cos (c+d x)}}+\frac {A b \sqrt {\cos (c+d x)} \sqrt {b \cos (c+d x)} \sin (c+d x)}{2 d}-\frac {b B \sqrt {b \cos (c+d x)} \sin ^3(c+d x)}{3 d \sqrt {\cos (c+d x)}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.13, size = 69, normalized size = 0.49 \begin {gather*} \frac {(b \cos (c+d x))^{3/2} (6 A c+6 A d x+9 B \sin (c+d x)+3 A \sin (2 (c+d x))+B \sin (3 (c+d x)))}{12 d \cos ^{\frac {3}{2}}(c+d x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[Sqrt[Cos[c + d*x]]*(b*Cos[c + d*x])^(3/2)*(A + B*Cos[c + d*x]),x]

[Out]

((b*Cos[c + d*x])^(3/2)*(6*A*c + 6*A*d*x + 9*B*Sin[c + d*x] + 3*A*Sin[2*(c + d*x)] + B*Sin[3*(c + d*x)]))/(12*
d*Cos[c + d*x]^(3/2))

________________________________________________________________________________________

Maple [A]
time = 0.27, size = 74, normalized size = 0.53

method result size
default \(\frac {\left (b \cos \left (d x +c \right )\right )^{\frac {3}{2}} \left (2 B \sin \left (d x +c \right ) \left (\cos ^{2}\left (d x +c \right )\right )+3 A \sin \left (d x +c \right ) \cos \left (d x +c \right )+3 A \left (d x +c \right )+4 B \sin \left (d x +c \right )\right )}{6 d \cos \left (d x +c \right )^{\frac {3}{2}}}\) \(74\)
risch \(\frac {b \sqrt {b \cos \left (d x +c \right )}\, \left (\sqrt {\cos }\left (d x +c \right )\right ) {\mathrm e}^{i \left (d x +c \right )} A x}{{\mathrm e}^{2 i \left (d x +c \right )}+1}-\frac {i b \sqrt {b \cos \left (d x +c \right )}\, \left (\sqrt {\cos }\left (d x +c \right )\right ) {\mathrm e}^{4 i \left (d x +c \right )} B}{12 \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}-\frac {i b \sqrt {b \cos \left (d x +c \right )}\, \left (\sqrt {\cos }\left (d x +c \right )\right ) {\mathrm e}^{3 i \left (d x +c \right )} A}{4 \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}-\frac {3 i b \sqrt {b \cos \left (d x +c \right )}\, \left (\sqrt {\cos }\left (d x +c \right )\right ) {\mathrm e}^{2 i \left (d x +c \right )} B}{4 \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}+\frac {3 i b \sqrt {b \cos \left (d x +c \right )}\, \left (\sqrt {\cos }\left (d x +c \right )\right ) B}{4 \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}+\frac {i b \sqrt {b \cos \left (d x +c \right )}\, \left (\sqrt {\cos }\left (d x +c \right )\right ) {\mathrm e}^{-i \left (d x +c \right )} A}{4 \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}+\frac {i b \sqrt {b \cos \left (d x +c \right )}\, \left (\sqrt {\cos }\left (d x +c \right )\right ) {\mathrm e}^{-2 i \left (d x +c \right )} B}{12 \left ({\mathrm e}^{2 i \left (d x +c \right )}+1\right ) d}\) \(325\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(d*x+c)^(1/2)*(b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)),x,method=_RETURNVERBOSE)

[Out]

1/6/d*(b*cos(d*x+c))^(3/2)*(2*B*sin(d*x+c)*cos(d*x+c)^2+3*A*sin(d*x+c)*cos(d*x+c)+3*A*(d*x+c)+4*B*sin(d*x+c))/
cos(d*x+c)^(3/2)

________________________________________________________________________________________

Maxima [A]
time = 0.62, size = 74, normalized size = 0.53 \begin {gather*} \frac {3 \, {\left (2 \, {\left (d x + c\right )} b + b \sin \left (2 \, d x + 2 \, c\right )\right )} A \sqrt {b} + {\left (b \sin \left (3 \, d x + 3 \, c\right ) + 9 \, b \sin \left (\frac {1}{3} \, \arctan \left (\sin \left (3 \, d x + 3 \, c\right ), \cos \left (3 \, d x + 3 \, c\right )\right )\right )\right )} B \sqrt {b}}{12 \, d} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^(1/2)*(b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)),x, algorithm="maxima")

[Out]

1/12*(3*(2*(d*x + c)*b + b*sin(2*d*x + 2*c))*A*sqrt(b) + (b*sin(3*d*x + 3*c) + 9*b*sin(1/3*arctan2(sin(3*d*x +
 3*c), cos(3*d*x + 3*c))))*B*sqrt(b))/d

________________________________________________________________________________________

Fricas [A]
time = 0.39, size = 237, normalized size = 1.69 \begin {gather*} \left [\frac {3 \, A \sqrt {-b} b \cos \left (d x + c\right ) \log \left (2 \, b \cos \left (d x + c\right )^{2} - 2 \, \sqrt {b \cos \left (d x + c\right )} \sqrt {-b} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right ) - b\right ) + 2 \, {\left (2 \, B b \cos \left (d x + c\right )^{2} + 3 \, A b \cos \left (d x + c\right ) + 4 \, B b\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{12 \, d \cos \left (d x + c\right )}, \frac {3 \, A b^{\frac {3}{2}} \arctan \left (\frac {\sqrt {b \cos \left (d x + c\right )} \sin \left (d x + c\right )}{\sqrt {b} \cos \left (d x + c\right )^{\frac {3}{2}}}\right ) \cos \left (d x + c\right ) + {\left (2 \, B b \cos \left (d x + c\right )^{2} + 3 \, A b \cos \left (d x + c\right ) + 4 \, B b\right )} \sqrt {b \cos \left (d x + c\right )} \sqrt {\cos \left (d x + c\right )} \sin \left (d x + c\right )}{6 \, d \cos \left (d x + c\right )}\right ] \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^(1/2)*(b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)),x, algorithm="fricas")

[Out]

[1/12*(3*A*sqrt(-b)*b*cos(d*x + c)*log(2*b*cos(d*x + c)^2 - 2*sqrt(b*cos(d*x + c))*sqrt(-b)*sqrt(cos(d*x + c))
*sin(d*x + c) - b) + 2*(2*B*b*cos(d*x + c)^2 + 3*A*b*cos(d*x + c) + 4*B*b)*sqrt(b*cos(d*x + c))*sqrt(cos(d*x +
 c))*sin(d*x + c))/(d*cos(d*x + c)), 1/6*(3*A*b^(3/2)*arctan(sqrt(b*cos(d*x + c))*sin(d*x + c)/(sqrt(b)*cos(d*
x + c)^(3/2)))*cos(d*x + c) + (2*B*b*cos(d*x + c)^2 + 3*A*b*cos(d*x + c) + 4*B*b)*sqrt(b*cos(d*x + c))*sqrt(co
s(d*x + c))*sin(d*x + c))/(d*cos(d*x + c))]

________________________________________________________________________________________

Sympy [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: SystemError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)**(1/2)*(b*cos(d*x+c))**(3/2)*(A+B*cos(d*x+c)),x)

[Out]

Exception raised: SystemError >> excessive stack use: stack is 3004 deep

________________________________________________________________________________________

Giac [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: NotImplementedError} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cos(d*x+c)^(1/2)*(b*cos(d*x+c))^(3/2)*(A+B*cos(d*x+c)),x, algorithm="giac")

[Out]

Exception raised: NotImplementedError >> Unable to parse Giac output: Simplification assuming sageVARc near 0S
implification assuming sageVARc near 0Simplification assuming sageVARc near 0Simplification assuming sageVARc
near 0sageVARb*(3*sqr

________________________________________________________________________________________

Mupad [B]
time = 1.23, size = 93, normalized size = 0.66 \begin {gather*} \frac {b\,\sqrt {\cos \left (c+d\,x\right )}\,\sqrt {b\,\cos \left (c+d\,x\right )}\,\left (3\,A\,\sin \left (c+d\,x\right )+3\,A\,\sin \left (3\,c+3\,d\,x\right )+10\,B\,\sin \left (2\,c+2\,d\,x\right )+B\,\sin \left (4\,c+4\,d\,x\right )+12\,A\,d\,x\,\cos \left (c+d\,x\right )\right )}{12\,d\,\left (\cos \left (2\,c+2\,d\,x\right )+1\right )} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cos(c + d*x)^(1/2)*(b*cos(c + d*x))^(3/2)*(A + B*cos(c + d*x)),x)

[Out]

(b*cos(c + d*x)^(1/2)*(b*cos(c + d*x))^(1/2)*(3*A*sin(c + d*x) + 3*A*sin(3*c + 3*d*x) + 10*B*sin(2*c + 2*d*x)
+ B*sin(4*c + 4*d*x) + 12*A*d*x*cos(c + d*x)))/(12*d*(cos(2*c + 2*d*x) + 1))

________________________________________________________________________________________